package com.myblog.demo.websocket;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * WebSocket 发送的消息响应
 */
@Data
public class MessageResponse {
    private String type = "message";
    private int fromId;
    private int sessionId;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
